package com.codeyang.feign;

import com.codeyang.domain.UserAddr;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 描述: describe
 *
 * @author CodeYang_Site
 * @version 2021/5/31 21:35
 */
@FeignClient("member-service")
public interface OrderUserAddrFeign {

    /**
     * 远程调用 查询用户默认收货地址
     *
     * @param userId
     * @return
     */
    @GetMapping("p/address/getUserDefaultAddr")
    UserAddr getUserDefaultAddr(@RequestParam @Param("userId") String userId);

}
